package com.pf.controller;

import com.pf.aop.DecryptMethod;
import com.pf.dto.UserAddress;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2022/2/13 19:37
 */
@RestController
@RequestMapping("/demo2")
public class Demo2Controller {

    @PostMapping("/decrypt")
    @DecryptMethod
    public UserAddress decrypt(@RequestBody UserAddress userAddress) {
        return userAddress;
    }
}
